home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
prg_basi
/
qbsvga.zip
/
PRTEST.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-08-09
|
1KB
|
36 lines
'
' This is a simple example to show how the printer routines are called.
' Remove the leading comment character for whichever kind of printer you
' have attached to LPT1--if you actually want to run the program, as
' opposed to simply looking at it. (Note that there are two sets of calls
' to the printer routines, and as always, you need to link with QB.LIB
' or run QB with the /L option.) (Feel free to change the 150 DPI
' parameter in the calls to HPRINT if you want.)
'
' Put the contents of REGTYPE.INC here.
'
' Draw circle in 640 x 480 x 256 mode and print it.
'
CALL BSCREEN(14!,15!,0!,0!)
CALL BCIRCLE(150!,150!,140!,14!,0!,0!,1!)
' CALL HPRINT(0!,0!,300!,300!,150!,0!) 'HP Laserjet/Deskjet
' CALL PRINT8(0!,0!,300!,300!,0!,"I") '8-pin/IBM mode
' CALL PRINT8(0!,0!,300!,300!,0!,"S") '8-pin/native mode
' CALL EPRINT(0!,0!,300!,300!,0!) '24-pin Epson LQ
'
' Draw rectangle around screen in 800 x 600 x 16 mode and print it.
'
CALL BSCREEN(15!,15!,0!,0!)
CALL BLINE(0!,0!,799!,599!,14!,"B")
' CALL HPRINT(0!,0!,799!,599!,150!,1!)
' CALL PRINT8(0!,0!,799!,599!,1!,"I")
' CALL PRINT8(0!,0!,799!,599!,1!,"S")
' CALL EPRINT(0!,0!,799!,599!,1!)
'
' Reset screen and quit.
'
CALL BSCREEN(0!,7!,0!,0!)
END
'
' Put the contents of QBSVGA.BAS here.